package cn.xu.liteflow.components;

import cn.hutool.core.collection.ListUtil;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeIteratorComponent;

import java.util.Iterator;
import java.util.List;

/**
 * @Author xuguofei clark2021@qq.com || WX clark_2023
 * @Date 2024/3/5
 * @Desc 迭代循环组件
 **/
@LiteflowComponent("iteratorCmp")
public class IteratorCmp extends NodeIteratorComponent {
    @Override
    public Iterator<?> processIterator() throws Exception {
        List<String> list = ListUtil.toList("jack", "mary", "tom");
        return list.iterator();
    }
}
